<?php
     include_once('../../src/classes/class.mssql.php');
    
     $comtec_id_configman = $_POST['comtec_id_configman'];
     $token = $_POST['token']; 
     
     //TODO validar el token recibido por POST y el de la sesion.
     
     $db = new MSSQL();  
     $tsql = "UPDATE [dbo].[configman] SET status_reg=0 WHERE 
              comtec_id_configman=".$comtec_id_configman;
     if($db->query($tsql))
     {      
      echo "<script>loadConfigmans();</script>";     
      //echo "<script>alert('Se ha eliminado la configuracion exitosamente');</script>";      
     } 
     else
     {
      echo '<p class="error">';
      echo "Error al eliminar la configuraci&oacute;n \n";  
      echo '</p';              
     }
?>
